﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Inter.MianShi.DAL;
using Inter.MianShi.Model;

namespace Inter.MianShi.BLL
{
    
    public class CompanyBll
    {
        CompanyDal dal = new CompanyDal();
        /// <summary>
        /// 添加公司
        /// </summary>
        /// <returns></returns>
        public int CompanyAdd(Company co)
        {
            return dal.CompanyAdd(co);
        }
        /// <summary>
        /// 显示公司信息
        /// </summary>
        /// <returns></returns>
        public List<Company> ShowCompany()
        {
            return dal.ShowCompany();
        }
        /// <summary>
        /// 根据编号删除公司信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelCompany(int id)
        {
            return dal.DelCompany(id);
        }
        /// <summary>
        /// 根据编号获取公司信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Company GetCompanyId(int id)
        {
            return dal.GetCompanyId(id);
        }
        /// <summary>
        /// 修改公司信息
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public int Uptdate(Company c)
        {
            return dal.Uptdate(c);
        }
    }
}
